home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / Fitts / MenuView.h < prev    next >
Encoding:
Text File  |  1991-03-22  |  767 b   |  46 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import <appkit/View.h>
  5.  
  6.  
  7. #define VERTICAL          1
  8. #define CIRCLE_PIE        2
  9. #define CIRCLE_RECTANGLE  3
  10.  
  11. #define MM_CONVERT (92.0/25.0)
  12.  
  13. typedef struct
  14. {
  15.     int menu_type;
  16.     int num_items;
  17.     float option1, option2, option3;
  18.     NXColor unselected_colour,
  19.             selected_colour;
  20. } MVParms;
  21.  
  22.         
  23. @interface MenuView:View
  24. {    
  25.     int   menuType;     /* HORIZONTAL, CIRCLE_PIE, CIRCLE_RECTANGLE */
  26.     int   numItems;
  27.     
  28.     float option1,
  29.           option2,
  30.       option3;
  31.       
  32.     NXColor unselectedColour,
  33.             selectedColour;
  34.  
  35.     int hitItem;
  36. }
  37.  
  38. - initFrame:(NXRect *) frameRect;
  39.  
  40. - drawSelf:(NXRect *) drawRects :(int) rectCount;
  41.  
  42. - setMenuParms:(MVParms *) parms;
  43.  
  44. - setHitItem:(int) hit_item;
  45. @end
  46.